using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace TuMama
{
    class ClientData : IDisposable
    {
        private Mensaje message;
        private ArrayList bytesInBuffer = new ArrayList();

        public ClientData()
        {
        }

        public ClientData(Mensaje m, ArrayList a)
        {
            message = m;
            bytesInBuffer = a;
        }

        public Mensaje Message
        {
            get
            {
                return message;
            }

            set
            {
                message = value;
            }

        }

        public ArrayList BytesInBuffer
        {
            get
            {
                return bytesInBuffer;
            }
            set
            {
                bytesInBuffer = value;
            }
        }
        #region IDisposable Members

        public void Dispose()
        {
            bytesInBuffer = null;
            message = null;
        }

        #endregion

    }
}
